package org.example.infrastructure;

import org.example.domain.model.Order;
import org.example.domain.repository.OrderRepository;
import org.example.infrastructure.jpa.JpaOrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liyishan
 * @date 2023/5/10 14:01
 * @apiNote
 */
@Service
public class OrderRepositoryImpl implements OrderRepository {
    @Autowired
    private JpaOrderRepository jpaOrderRepository;


    @Override
    public Order save(Order order) {
        return jpaOrderRepository.save(order);
    }
}
